home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 August (Alt) / CHIP 2005-08.1.iso / program / shareware / Flash_Oyunlar.exe / bumperball.swf / scripts / frame_34 / DoAction.as
Encoding:
Text File  |  2005-07-13  |  3.4 KB  |  100 lines

  1. if(returnFromGame == 0)
  2. {
  3. }
  4. goalSound.setVolume(GoalSoundVolume);
  5. carSound.setVolume(100);
  6. ingameLoopSound.setVolume(ingameLoopSoundVolume);
  7. ingameLoopSound.stop();
  8. ingameLoopSound.start(0,999);
  9. _root.counter.goalSoundPlay = "off";
  10. returnFromGame = 1;
  11. introLoopFade = introLoopVolume;
  12. _root.watch.digits._visible = 1;
  13. _root.watch.timebar._visible = 1;
  14. _root.watch.stopwatchstarttime = _root.globaltime;
  15. _root.watch.minutechangetime = 1000;
  16. _root.watch.Starttime = getTimer();
  17. _root.watch.stopwatchseconds1 = 0;
  18. _root.watch.stopwatchseconds10 = 0;
  19. _root.watch.stopwatchminutes1 = (_root.watch.stopwatchstarttime / 10 - Math.floor(_root.watch.stopwatchstarttime / 10)) * 10;
  20. _root.watch.stopwatchminutes10 = Math.floor(_root.watch.stopwatchstarttime / 10);
  21. _root.watch.minutes = 0;
  22. _root.gameover._visible = 0;
  23. _root.gameover.gameover = 0;
  24. _root.watch.timebar.gotoAndStop(1);
  25. _root.watch.bar_starttime = getTimer();
  26. _root.watch.bar_totaltime = _root.watch.stopwatchstarttime * 60;
  27. _root.GoalGreen._visible = 0;
  28. _root.goalred._visible = 0;
  29. _root.GoalGreen._y = 170;
  30. _root.goalred._y = 170;
  31. _root.counter.goalleftcounter = 0;
  32. _root.counter.goalleftcounter1 = 0;
  33. _root.counter.goalleftcounter10 = 0;
  34. _root.counter.goalrightcounter = 0;
  35. _root.counter.goalrightcounter10 = 0;
  36. _root.counter.action = "0";
  37. _root.counter.goalleft1.gotoAndStop(10);
  38. _root.counter.goalleft10.gotoAndStop(10);
  39. _root.counter.goalright1.gotoAndStop(10);
  40. _root.counter.goalright10.gotoAndStop(10);
  41. _root.ball.wallbounce = 1;
  42. _root.ball.Ballenergy = 1.02;
  43. _root.ball.speedX = 0;
  44. _root.ball.c._visible = 0;
  45. _root.ball.posx = 364;
  46. _root.ball.posy = 60;
  47. _root.ball.RandomSpeed = random(25);
  48. _root.ball.speedY = 4 + _root.ball.RandomSpeed;
  49. _root.player1.hittimer = 30;
  50. _root.player1.borderbounce = 2.5;
  51. _root.player1._y = 145;
  52. _root.player1._x = 620;
  53. _root.player1.framenumber = 7;
  54. _root.player1.Speed = 0;
  55. _root.player1.diry = 0;
  56. _root.player1.dirx = -1;
  57. _root.player1.CollisionBall._visible = 0;
  58. _root.player1.collisionBig._visible = 0;
  59. _root.player1.CalcSpeedCounter = 0;
  60. _root.player1.collisionRealtime._visible = 0;
  61. _root.player1.ShootSpeed = 1.5;
  62. _root.player1.Bumptimer = 10;
  63. _root.player1.physicsY = 0;
  64. _root.player1.physicsX = 0;
  65. _root.player2.borderbounce = 2.5;
  66. _root.player2.ShootSpeed = 1.5;
  67. _root.player2.hittimer = 20;
  68. _root.player2.framenumber = 19;
  69. _root.player2._y = 145;
  70. _root.player2._x = 62;
  71. _root.player2.Speed = 0;
  72. _root.player2.dirY = 0;
  73. _root.player2.dirX = 1;
  74. _root.player2.collisionRealtime._visible = 0;
  75. _root.player2.CollisionBall._visible = 0;
  76. _root.player2.collisionBig._visible = 0;
  77. _root.player2.Bumptimer = 10;
  78. _root.player2.Speedtimer = 1;
  79. _root.player2.DirTimer = 1;
  80. _root.player2.physicsY = 0;
  81. _root.player2.physicsX = 0;
  82. _root.player2.MaxSpeed = MaxSpeed;
  83. _root.player2.lowAcc = lowAcc;
  84. _root.player2.highAcc = highAcc;
  85. _root.counter.goalleftcounter = 0;
  86. _root.counter.goalleftcounter1 = 0;
  87. _root.counter.goalleftcounter10 = 0;
  88. _root.counter.goalrightcounter = 0;
  89. _root.counter.goalrightcounter1 = 0;
  90. _root.counter.goalrightcounter10 = 0;
  91. _root.counter.action = "0";
  92. _root.counter.goalleft1.gotoAndStop(10);
  93. _root.counter.goalleft10.gotoAndStop(10);
  94. _root.counter.goalright1.gotoAndStop(10);
  95. _root.counter.goalright10.gotoAndStop(10);
  96. _root.GoalGreen._visible = 0;
  97. _root.goalred._visible = 0;
  98. _root.GoalGreen._y = 170;
  99. _root.goalred._y = 170;
  100.